package com.gy.ai.agent.core;

import com.gy.ai.agent.Platform;
import com.gy.ai.agent.client.BaseReqClient;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * @author LGY
 * Create by 2025/6/16 14:43
 */
@Data
public class ReqContext {

    private Platform platform;
    private BaseReqClient client;
    private final Map<String, Object> params = new HashMap<>();

    public ReqContext() {
    }

    public ReqContext(Platform platform, BaseReqClient client) {
        this.platform = platform;
        this.client = client;
    }

    public void addParams(String key, Object value) {
        this.params.put(key, value);
    }

    public <T> T getParam(String key) {
        return (T) params.get(key);
    }
}
